import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const readSystemDeptByPage = (param) => request({
    url: baseUrl + '/dept/read/page',
    method: 'post',
    data:param
});

export const addSystemDept = (data) => request({
    url: baseUrl + '/dept/save',
    method: 'post',
    data:data
})

export const editSystemDept = (data) => request({
    url: baseUrl + '/dept/save',
    method: 'post',
    data:data
})

export const delSystemDept = (id) => request({
    url: baseUrl + '/dept/delete',
    method: 'post',
    data: { id: id }
})
